package com.example.book_recommend.entity;

import java.util.Date;

public class Reply {
    private Integer replyId;

    private String type;

    private String title;

    private String content;

    private Integer userId;

    private String username;

    private Date date;

    private String userIp;

    public Reply(Integer replyId, String type, String title, String content, Integer userId, String username, Date date, String userIp) {
        this.replyId = replyId;
        this.type = type;
        this.title = title;
        this.content = content;
        this.userId = userId;
        this.username = username;
        this.date = date;
        this.userIp = userIp;
    }

    public Reply() {
        super();
    }

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp == null ? null : userIp.trim();
    }
}